//---------------------------------------------------------------------------------
#include "CEmplacement.h"
//---------------------------------------------------------------------------------
static CEmplacement *instance=0;
//---------------------------------------------------------------------------------
CEmplacement* CEmplacement::getInstance(void) {
	if(instance == 0) {
		instance=new CEmplacement();
	}
	
	return instance;
}
//---------------------------------------------------------------------------------
void CEmplacement::draw(QPainter *painter, int x, int y, int step) {
	painter->drawImage(QPoint(x, y), step < 3 ? image1 : step < 6 ? image2 : step < 9 ? image3 : image4);
}
//---------------------------------------------------------------------------------
CEmplacement::CEmplacement(void) : CSprite() {
	image1=QImage(":qt-soko/images/emplacement.png");
	image2=QImage(":qt-soko/images/emplacement2.png");
	image3=QImage(":qt-soko/images/emplacement3.png");
	image4=QImage(":qt-soko/images/emplacement4.png");
}
//---------------------------------------------------------------------------------